package com.whu.MenuHub.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.whu.MenuHub.domain.ReceivingAddress;
import com.whu.MenuHub.exception.MenuHubException;
import java.util.List;

public interface AddressService extends IService<ReceivingAddress> {
    public List<ReceivingAddress> getaddressByUserID(Integer userid);
    public ReceivingAddress insertAddress(ReceivingAddress address) throws MenuHubException;
    public void updateAddress(ReceivingAddress address) throws MenuHubException;
    public void deleteAddressById(Integer id, Integer userID) throws MenuHubException;

    public ReceivingAddress getDefaultAddress(Integer userID);
    public ReceivingAddress getAddressByID(Integer id);
}
